package com.netty.common.entity.bo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.netty.common.entity.User;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Collection;
import java.util.Set;

/**
 * @author LiuXiaoYu
 * @date 2022/2/1- 11:22
 */
@Data
@NoArgsConstructor
@Getter
@Setter
public class AuthUser implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    private String username;

    /**
     * 用户密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;
}
